home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form1
- Caption = "Form1"
- ClientHeight = 1095
- ClientLeft = 1620
- ClientTop = 1545
- ClientWidth = 3690
- LinkTopic = "Form1"
- OLEDropMode = 1 'Manual
- ScaleHeight = 1095
- ScaleWidth = 3690
- Begin VB.Label Label1
- Caption = "Drag and drop files onto this form. The form will list the files and take no other action."
- Height = 495
- Left = 240
- TabIndex = 0
- Top = 240
- Width = 3135
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Form_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single)
- Dim txt As String
- Dim fname As Variant
- For Each fname In Data.Files
- txt = txt & fname & vbCrLf
- Next fname
- MsgBox txt
- ' Indicate we did nothing with the files.
- Effect = vbDropEffectNone
- End Sub
-